﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace MobilesStore.Domain.Entities
{
    public class Comment
    {
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }

        [HiddenInput(DisplayValue = false)]
        public int ProductID { get; set; }

        [Required(ErrorMessage = "Please specify a Commenter")]
        [DisplayName("Your Name:")]
        [StringLength(50, ErrorMessage = "Your Name cannot exceed 50 chars")]
        public String Commenter { get; set; }

        [DataType(DataType.MultilineText)]
        [Required(ErrorMessage = "Please specify a Comment Content")]
        [DisplayName("Your Comment:")]
        [StringLength(500, ErrorMessage = "Your comment cannot exceed 500 chars")]
        public String CommentContent { get; set; }
    }
}
